Skip to content

Comments

fix(share): handle NotFoundError for non-shared sessions in sync#6634

Merged
adamdotdevin merged 1 commit intoanomalyco:devfrom
Hona:fix/share-link-error
Jan 2, 2026
Merged

fix(share): handle NotFoundError for non-shared sessions in sync#6634
adamdotdevin merged 1 commit intoanomalyco:devfrom
Hona:fix/share-link-error

Conversation

@Hona
Copy link
Member

@Hona Hona commented Jan 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 2, 2026 09:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where the sync function in share-next.ts would throw a NotFoundError when attempting to sync sessions that haven't been shared. The fix ensures that sync operations gracefully handle non-shared sessions by catching the error and returning early.

Key Changes:

  • Added error handling to get(sessionID) call in the sync function to catch NotFoundError and return undefined instead
  • This allows the sync operation to gracefully exit early when a session is not shared, preventing uncaught errors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adamdotdevin adamdotdevin merged commit c600114 into anomalyco:dev Jan 2, 2026
8 checks passed
triklozoid pushed a commit to triklozoid/opencode that referenced this pull request Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants